Integrand size = 35, antiderivative size = 130 \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\frac {4 a (4 A+5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 a (4 A+5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}} \]
2/5*a*A*cos(d*x+c)^(3/2)*sin(d*x+c)/d/(a+a*sec(d*x+c))^(1/2)+4/15*a*(4*A+5 *B)*sin(d*x+c)/d/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2)+2/15*a*(4*A+5*B)* sin(d*x+c)*cos(d*x+c)^(1/2)/d/(a+a*sec(d*x+c))^(1/2)
Time = 0.29 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.61 \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\frac {2 \sqrt {\cos (c+d x)} \left (8 A+10 B+(4 A+5 B) \cos (c+d x)+3 A \cos ^2(c+d x)\right ) \sqrt {a (1+\sec (c+d x))} \sin (c+d x)}{15 d (1+\cos (c+d x))} \]
(2*Sqrt[Cos[c + d*x]]*(8*A + 10*B + (4*A + 5*B)*Cos[c + d*x] + 3*A*Cos[c + d*x]^2)*Sqrt[a*(1 + Sec[c + d*x])]*Sin[c + d*x])/(15*d*(1 + Cos[c + d*x]) )
Time = 0.79 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.15, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.229, Rules used = {3042, 3434, 3042, 4503, 3042, 4292, 3042, 4291}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a} (A+B \sec (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \sqrt {a \csc \left (c+d x+\frac {\pi }{2}\right )+a} \left (A+B \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 3434 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {\sqrt {\sec (c+d x) a+a} (A+B \sec (c+d x))}{\sec ^{\frac {5}{2}}(c+d x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a} \left (A+B \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx\) |
\(\Big \downarrow \) 4503 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} (4 A+5 B) \int \frac {\sqrt {\sec (c+d x) a+a}}{\sec ^{\frac {3}{2}}(c+d x)}dx+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} (4 A+5 B) \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}dx+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}\right )\) |
\(\Big \downarrow \) 4292 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} (4 A+5 B) \left (\frac {2}{3} \int \frac {\sqrt {\sec (c+d x) a+a}}{\sqrt {\sec (c+d x)}}dx+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}\right )+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} (4 A+5 B) \left (\frac {2}{3} \int \frac {\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}\right )+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}\right )\) |
\(\Big \downarrow \) 4291 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{5} (4 A+5 B) \left (\frac {4 a \sin (c+d x) \sqrt {\sec (c+d x)}}{3 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}\right )+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}\right )\) |
Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*((2*a*A*Sin[c + d*x])/(5*d*Sec[c + d *x]^(3/2)*Sqrt[a + a*Sec[c + d*x]]) + ((4*A + 5*B)*((2*a*Sin[c + d*x])/(3* d*Sqrt[Sec[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]) + (4*a*Sqrt[Sec[c + d*x]]*S in[c + d*x])/(3*d*Sqrt[a + a*Sec[c + d*x]])))/5)
3.6.17.3.1 Defintions of rubi rules used
Int[((a_.) + csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]* (d_.) + (c_))^(n_.)*((g_.)*sin[(e_.) + (f_.)*(x_)])^(p_.), x_Symbol] :> Sim p[(g*Csc[e + f*x])^p*(g*Sin[e + f*x])^p Int[(a + b*Csc[e + f*x])^m*((c + d*Csc[e + f*x])^n/(g*Csc[e + f*x])^p), x], x] /; FreeQ[{a, b, c, d, e, f, g , m, n, p}, x] && NeQ[b*c - a*d, 0] && !IntegerQ[p] && !(IntegerQ[m] && I ntegerQ[n])
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]/Sqrt[csc[(e_.) + (f_.)*(x_)] *(d_.)], x_Symbol] :> Simp[-2*a*(Cot[e + f*x]/(f*Sqrt[a + b*Csc[e + f*x]]*S qrt[d*Csc[e + f*x]])), x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[a*Cot[e + f*x]*((d*Csc[e + f*x])^n/(f*n*Sqrt[a + b*Csc[e + f*x]])), x] + Simp[a*((2*n + 1)/(2*b*d*n)) Int[Sqrt[a + b*Csc [e + f*x]]*(d*Csc[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && LtQ[n, -2^(-1)] && IntegerQ[2*n]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[A*b^2*Co t[e + f*x]*((d*Csc[e + f*x])^n/(a*f*n*Sqrt[a + b*Csc[e + f*x]])), x] + Simp [(A*b*(2*n + 1) + 2*a*B*n)/(2*a*d*n) Int[Sqrt[a + b*Csc[e + f*x]]*(d*Csc[ e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, A, B}, x] && NeQ[A*b - a *B, 0] && EqQ[a^2 - b^2, 0] && NeQ[A*b*(2*n + 1) + 2*a*B*n, 0] && LtQ[n, 0]
Time = 4.53 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.58
method | result | size |
default | \(-\frac {2 \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\cos \left (d x +c \right )-1\right ) \left (3 A \cos \left (d x +c \right )^{2}+4 A \cos \left (d x +c \right )+5 B \cos \left (d x +c \right )+8 A +10 B \right ) \sqrt {\cos \left (d x +c \right )}\, \csc \left (d x +c \right )}{15 d}\) | \(76\) |
-2/15/d*(a*(1+sec(d*x+c)))^(1/2)*(cos(d*x+c)-1)*(3*A*cos(d*x+c)^2+4*A*cos( d*x+c)+5*B*cos(d*x+c)+8*A+10*B)*cos(d*x+c)^(1/2)*csc(d*x+c)
Time = 0.27 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.62 \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\frac {2 \, {\left (3 \, A \cos \left (d x + c\right )^{2} + {\left (4 \, A + 5 \, B\right )} \cos \left (d x + c\right ) + 8 \, A + 10 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
2/15*(3*A*cos(d*x + c)^2 + (4*A + 5*B)*cos(d*x + c) + 8*A + 10*B)*sqrt((a* cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/(d*cos(d*x + c) + d)
Timed out. \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\text {Timed out} \]
Leaf count of result is larger than twice the leaf count of optimal. 296 vs. \(2 (112) = 224\).
Time = 0.42 (sec) , antiderivative size = 296, normalized size of antiderivative = 2.28 \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\frac {\sqrt {2} {\left (30 \, \cos \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \cos \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) - 30 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) - 5 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 6 \, \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \sin \left (\frac {3}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 30 \, \sin \left (\frac {1}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right )\right )} A \sqrt {a} - 10 \, {\left (3 \, \sqrt {2} \cos \left (\frac {3}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right ) \sin \left (d x + c\right ) - {\left (3 \, \sqrt {2} \cos \left (d x + c\right ) + 2 \, \sqrt {2}\right )} \sin \left (\frac {3}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right ) - 3 \, \sqrt {2} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right )\right )} B \sqrt {a}}{60 \, d} \]
1/60*(sqrt(2)*(30*cos(4/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/2*d*x + 5/2* c)))*sin(5/2*d*x + 5/2*c) + 5*cos(2/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/ 2*d*x + 5/2*c)))*sin(5/2*d*x + 5/2*c) - 30*cos(5/2*d*x + 5/2*c)*sin(4/5*ar ctan2(sin(5/2*d*x + 5/2*c), cos(5/2*d*x + 5/2*c))) - 5*cos(5/2*d*x + 5/2*c )*sin(2/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/2*d*x + 5/2*c))) + 6*sin(5/2 *d*x + 5/2*c) + 5*sin(3/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/2*d*x + 5/2* c))) + 30*sin(1/5*arctan2(sin(5/2*d*x + 5/2*c), cos(5/2*d*x + 5/2*c))))*A* sqrt(a) - 10*(3*sqrt(2)*cos(3/2*arctan2(sin(d*x + c), cos(d*x + c)))*sin(d *x + c) - (3*sqrt(2)*cos(d*x + c) + 2*sqrt(2))*sin(3/2*arctan2(sin(d*x + c ), cos(d*x + c))) - 3*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))) )*B*sqrt(a))/d
\[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} \sqrt {a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
Timed out. \[ \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx=\int {\cos \left (c+d\,x\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \]